// 通用弹框
.contract-editor-main-dialog, .contract-last-rebuild-dialog {
  .el-dialog {
    background-color: #f5f5f5;

    .el-dialog__title {
      color: #303133;
    }

    .el-dialog__header {
      background: #fff;
      padding: 20px 20px 10px;
      text-align: left;
    }

    .el-dialog__body {
      height: calc(100% - 54px);
      padding: 15px 20px;
    }

    .el-dialog__headerbtn {
      top: 20px;

      .el-dialog__close {
        color: #909399;
      }
    }

    .editor-footer {
      display: flex;
      position: absolute;
      top: 7px;
      right: 20px;
      height: 32px;
      line-height: 32px;

      .contractEditorFooterForm {
        line-height: 40px;

        span, .el-badge {
          margin-right: 10px;
        }

        .el-form-item {
          margin-right: 0;

          .el-form-item__error {
            padding: 0;
          }
        }
      }
    }
  }
}

//左侧drawer
.left-bar {
  .el-drawer__header {
    margin-bottom: 0;
  }

  .el-drawer__body {
    padding: 10px;
    overflow: auto;
  }

  .leftBarAuthor {
    p.title {
      font-size: 17px;
      font-weight: bold;
      color: #333333;
      margin: 20px 0 20px;

      i {
        color: #fff;
        margin-right: 10px;
        background-color: #0E90FE;
        border-radius: 50%;
        font-size: 13px;
        padding: 1.5px;
      }
    }

    ul {
      display: flex;
      flex-direction: column;
      position: relative;

      li {
        transition: all .5s;
        height: 33px;
        margin: 10px 0;
        list-style: none;
        line-height: 30px;
        color: #333333;
        border: 1px solid #d2d2d2;

        .el-row {
          height: 100%;
          width: 100%;

          .el-col {
            height: 100%;
            line-height: 33px;
          }

          .anchorLink {
            background-color: #53B478;

            i {
              margin-left: 5px;
              font-size: 18px;
              color: #fff;
            }

            span {
              color: #fff;
              padding: 0 10px;
            }
          }

          .goAnchorLink {
            cursor: pointer;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;

            span {
              margin-left: 10px;
            }
          }

          .authorDelete {
            text-align: right;

            i {
              cursor: pointer;
              opacity: 0;
              transition: .5s opacity;
            }
          }

          &:hover {
            i {
              opacity: 1;
            }
          }
        }
      }
    }
  }
}

//右侧drawer
.right-bar {
  .el-drawer__header {
    margin-bottom: 0;
  }

  .el-drawer__body {
    padding: 10px;
    overflow: auto;
  }

  .el-form {
    padding: 0 5px 50px 0;
    background-color: #fff;
    height: 100%;
    border-radius: 4px;
    overflow: auto;

    h2 {
      margin: 20px 0;
    }

    .el-input-number {
      width: 100%;
    }

    .selectOptionAdd {
      .el-input {
        margin-right: 10px;
      }

      .el-button {
        position: absolute;
        right: 0;
        top: 0;
      }

      //display: flex;
    }

    .drawerTips {
      margin: 20px 0;

      i {
        color: red
      }

      span {
        color: red;
        font-weight: bold;
      }
    }

    .selectOptionList {
      padding: 5px;
      border: 1px solid #d4d4d4;
      height: 90px;
      overflow: auto;
      margin-bottom: 10px;
      display: flex;
      flex-wrap: wrap;
      border-radius: 4px;

      p {
        min-width: 30px;
        height: 20px;
        margin: 5px 5px;
        padding: 4px;
        border-radius: 4px;
        background-color: #ccc;

        i {
          color: red;
          cursor: pointer;
        }
      }
    }

    .drawer-footer {
      text-align: center;
    }

    //多重验证选择框
    .el-tag.el-tag--info {
      color: red;
      font-weight: bold;
    }

    //随机绑定框
    .el-switch__label.is-active {
      color: red;
      font-weight: bold;
    }

    //随机字段的过渡动画
    .randomValueInput {
      transition: all 0.5s;
    }
  }
}
